{% extends 'header_base.html' %}

{% block bodycontents %}


<h3>{{ group.name|escape }}</h3>
Currency: {{ group.currency }}

<ul>
{% for member in group.groupmembership_set %}
<li>
{%if member.nickname %}
  {{ member.nickname|escape }} ({{ member.email|escape }})
{% else %}
  {{ member.email|escape }}
{% endif %}</li>
{% endfor %}
</ul>

<form action="/group/addmember" method=POST>
<table class="bling_form">
<tr>
  <td> Email </td> <td> Name </td> <td> </td>
</tr>
<tr>
  <td> <input type=text name="email" /> </td>
  <td> <input type=text name="nickname" /> </td>
  <td> <input type=submit value="Add Member"/> </td>
</tr>
</table>
<input type=hidden name="group_id" value="{{ group.key.id }}" />
<form>

{% endblock %}
